/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const logisticsRouter = {
  path: '/logistics',
  component: Layout,
  hidden:false,
  redirect: 'noRedirect',
  name: '物流',
  meta: {
    title: '物流',
    icon: 'shopping',
    roles: ['logistics']
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/logistics/workbrench/workbrench'),
      name: '总览',
      
      meta: { title: '总览' }
    },
    {
      path: 'setting',
      component: () => import('@/views/logistics/index'),
      name: '配置',
      meta: { title: '配置' },
      children:[
        {
          path: 'cainiao',
          component: () => import('@/views/logistics/setting/cainiao'),
          name: '菜鸟',
          meta: { title: '菜鸟' }
        },
        {
          path: 'kuaidiniao',
          component: () => import('@/views/logistics/setting/cainiao'),
          name: '快递鸟',
          meta: { title: '快递鸟' }
        },

      ]
    },
    {
      path: 'sender',
      component: () => import('@/views/logistics/sender/sender'),
      name: '寄件人',
      meta: { title: '寄件人' }
    },
    {
      path: 'sender-add',
      hidden: true,
      component: () => import('@/views/logistics/sender/sender-add'),
      name: '快递公司',
      meta: { title: '快递公司' }
    },
    {
      path: 'sender-detail',
      hidden: true,
      component: () => import('@/views/logistics/sender/sender-detail'),
      name: '寄件人信息',
      meta: { title: '寄件人信息' }
    },
    {
      path: 'waybill',
      component: () => import('@/views/logistics/waybill/waybill'),
      name: '运单',
      meta: { title: '运单' }
    },
    {
      path: 'waybill-add',
      hidden: true,
      component: () => import('@/views/logistics/waybill/waybill-add'),
      name: '新运单',
      meta: { title: '新运单' }
    },
    {
      path: 'waybill-detail',
      hidden: true,
      component: () => import('@/views/logistics/waybill/waybill-detail'),
      name: '运单信息',
      meta: { title: '运单信息' }
    },
    {
      path: 'template',
      component: () => import('@/views/logistics/template/template'),
      name: '模板',
      meta: { title: '模板' }
    },
    {
      path: 'template-detail',
      hidden: true,
      component: () => import('@/views/logistics/template/template-detail'),
      name: '模板信息',
      meta: { title: '模板信息' }
    },
    {
      path: 'company',
      component: () => import('@/views/logistics/company/company'),
      name: '快递公司',
      meta: { title: '快递公司' }
    },
    {
      path: 'company-add',
      hidden: true,
      component: () => import('@/views/logistics/company/company-add'),
      name: '快递公司',
      meta: { title: '快递公司' }
    },
    {
      path: 'company-detail',
      hidden: true,
      component: () => import('@/views/logistics/company/company-detail'),
      name: '快递公司',
      meta: { title: '快递公司' }
    },
    {
      path: 'account',
      component: () => import('@/views/logistics/account/account'),
      name: '月结账户',
      meta: { title: '月结账户' }
    },
    {
      path: 'account-add',
      hidden: true,
      component: () => import('@/views/logistics/account/account-add'),
      name: '月结账户',
      meta: { title: '月结账户' }
    },
    {
      path: 'account-detail',
      hidden: true,
      component: () => import('@/views/logistics/account/account-detail'),
      name: '月结账户信息',
      meta: { title: '月结账户信息' }
    },
    {
      path: 'print',
      component: () => import('@/views/logistics/print/print'),
      name: '打印记录',
      meta: { title: '打印记录' }
    },
    {
      path: 'print-detail',
      hidden: true,
      component: () => import('@/views/logistics/print/print-detail'),
      name: '打印档案',
      meta: { title: '打印档案' }
    },
  ]
}

export default logisticsRouter
